#include "junix.h"
#include <boost/array.hpp>

using namespace std;

int main(int argc, char **argv)
{
	boost::array<int,5> vec = { {1,2,3,4} };

	vec[4] = 5;
	copy(vec.begin(), vec.end(), ostream_iterator<int>(cout,"\n"));
	//vec[5] = 6;//error
	
	cout<<vec.front()<<endl;
	cout<<vec.back()<<endl;
}
